package com.gitee.cashzhang27.test.cloud.oauth.auth.server.extended.service;

import com.gitee.cashzhang27.test.cloud.oauth.auth.server.extended.entity.DictCodeEnums;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * 自定义UserDetailsService
 *
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/01/26 11:30
 */
public interface AuthUserDetailsService extends UserDetailsService {

  UserDetails loadUserByPhoneNumber(String phoneNumber, DictCodeEnums userType);

  UserDetails loadUserByUsername(String username, DictCodeEnums userType);

  UserDetails loadUserByEmailNumber(String emailNumber, DictCodeEnums userType);
}
